package com.indusfo.spc.client.mapper;

import com.indusfo.spc.pojo.BatchFlow;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author chenm
 * @create 2019-12-06 19:52
 */
public interface ClientBatchFlowMapper {

  /**
   * 根据批号查询工序id集合
   */

  List<Integer> selectProIdByBatchNo(@Param("batchNo") String batchNo);


  /**
   *
   * 根据批次号查询当前的工序
   * */
  BatchFlow currentProByBatchNo(@Param("batchNo") String batchNo);

  int insertBatchFlowList(@Param("batchFlows") List<BatchFlow> batchFlows);

  BatchFlow selectByBatchIdAndProId(@Param("batchId") Integer batchId, @Param("proId") Integer proId);

  int insertBatchFlow(BatchFlow batchFlow);

  BatchFlow selectByBatchNo(@Param("batchCode") String batchCode);

  int updateBatchFlow(BatchFlow batch_flow);
  
}
